package com.employee.controller;

import com.employee.pojo.entry.YZM;
import com.employee.pojo.result.Result;
import com.employee.service.YZMService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class YZMController {

    @Autowired
    private YZMService yzmService;

    @GetMapping("/yzm")
    public Result<YZM> getYZM(){
        return Result.success(yzmService.getYZM());
    }
}
